<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <include file="Public:resource"/>
    <title>用水查询结果</title>
</head>
<body>
<div class="container">
    <include file="Public:top" title="查询结果"/>
    <if condition="json.retcode eq -1"><!-- -1表示没找到用户-->
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 c-gray" style="margin-top: 50px;font-size: large"
                 align="center">
                {$json.msg}
            </div>
        </div>
        <else/>
        <empty name="json.data.list">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-2 col-lg-12" style="margin-top: 50px;font-size: large"
                     align="center">
                    用户"{$json.userid}"在{$json.year}年无用水记录
                </div>
            </div>
            <else/>

            <div class="row" style="margin-top: 10px;" align="center">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="font-size: medium">
                    水费账号:{$json.userid}
                </div>
            </div>

            <include file="Public:bar" text="查找到以下结果"/>

            <foreach name="json.data.list" item="order">
                <div class="row" style="border-bottom: darkgray solid 1px;padding: 10px 0px 5px 0px;">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                账单月份
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                {$order.month}
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                抄表时间
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                {$order.billtime}
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                上期表数
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                {$order.upqty}
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                本期表数
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                {$order.curqty}
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                本期用水
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                {$order.useqty}
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                水费单价
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                <span class="c-red">￥
                                    <script>
                                        document.write(FenToYuan('{$order.price}'));
                                    </script>
                                   元/吨
                                </span>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                滞纳金
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                <span class="c-red">￥
                                    <script>
                                        document.write(FenToYuan('{$order.latefee}'));
                                    </script>
                                   元
                                </span>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                其它费用
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                <span class="c-red">￥
                                    <script>
                                        document.write(FenToYuan('{$order.otherfee}'));
                                    </script>
                                   元
                                </span>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                账单金额
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                <span class="c-red">￥
                                    <script>
                                        document.write(FenToYuan('{$order.billamount}'));
                                    </script>
                                   元
                                </span>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                缴费日期
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                <empty name="order.paytime">
                                    <span class="c-red">尚未缴费</span>
                                    <else/>
                                    {$order.paytime}
                                </empty>
                            </div>
                        </div>
                    </div>
                </div>
            </foreach>
        </empty>
    </if>
</div>
<script>
</script>
</body>
</html>